Eclipse Platform
Pre-release 3.0

org.eclipse.jface.text.source
Class TagHandlerFactory

java.lang.Object
  extended byorg.eclipse.jface.text.source.TagHandlerFactory
All Implemented Interfaces:
ITagHandlerFactory

public class TagHandlerFactory
extends Object
implements ITagHandlerFactory

Default implementation of a tag handler factory

Since:
3.0

Constructor Summary
TagHandlerFactory()
           
 
Method Summary
 void addTagHandler(String tag, ITagHandler handler)
           
 ITagHandler findHandler(String text)
          Finds and returns a handler that can handle the given text snippet.
 ITagHandler getHandler(String tag)
          Returns a handler that can handle the given tag.
 ITagHandler registerHandler(String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagHandlerFactory

public TagHandlerFactory()
Method Detail

addTagHandler

public void addTagHandler(String tag,
                          ITagHandler handler)

registerHandler

public ITagHandler registerHandler(String tag)

getHandler

public ITagHandler getHandler(String tag)
Description copied from interface: ITagHandlerFactory
Returns a handler that can handle the given tag.

Depending on the used handler the factory might return a new or a shared instance.

Specified by:
getHandler in interface ITagHandlerFactory
Parameters:
tag - the tag for which to return the handler
Returns:
a tag handler or null if no handler is available

findHandler

public ITagHandler findHandler(String text)
Description copied from interface: ITagHandlerFactory
Finds and returns a handler that can handle the given text snippet.

Depending on the used handler the factory might return a new or a shared instance.

Specified by:
findHandler in interface ITagHandlerFactory
Parameters:
text - the text for which to find a handler
Returns:
a tag handler or null if no handler is available

Eclipse Platform
Pre-release 3.0

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.